<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="indtemuserCss" jsFile="indtemuserJs" current="个人用户">
  	<div class="page-content">
        <!-- BEGIN PAGE HEAD-->
        <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>用户管理
                    <small>管理用户账号密码</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">个人用户</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
                    <div class="col-md-12 col-sm-12 search-form">
                        <form id="individualSearchForm" action="" method="post" name="searchForm">
                       		<input type="hidden" class="form-control" placeholder="公司名称"  name="company_name"   id="company_name" value="${pageForm.company_name}"></input>
                       		<input type="hidden" class="form-control" placeholder="公司名称"  name="company_id_val" id="company_id_val" value="${pageForm.company_id}"></input>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">姓名</span>
                                <input class="form-control" placeholder="姓名"  name="consumer_name" value="${pageForm.consumer_name}"></input>
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">证件号码</span>
                                <input class="form-control" placeholder="证件号码" name="law_no" value="${pageForm.law_no}"></input>
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">手机号</span>
                                <input class="form-control" placeholder="手机号" name="mobile_tel" value="${pageForm.mobile_tel}"></input>
                            </div> 
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">邮箱</span>
                                <input class="form-control" placeholder="邮箱" name="email" value="${pageForm.email}"></input>
                            </div> 
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">所属公司</span>
                                <select class="form-control input-inline" name="company_id" id="company_id"  >
                                	<option value="">请选择</option>
                                	<#if pageForm.company_id ??>
                                	<option value="${pageForm.company_id}" selected>${pageForm.company_name}</option>
                                	</#if>
                                </select>
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">状态</span>
                                <select class="form-control input-inline" name ="data_status">
                                    <option value="">请选择</option>
                                    <option value="DATA_NEW_ADD" <#if pageForm.data_status == 'DATA_NEW_ADD'> selected</#if>>新增</option>
                                    <option value="DATA_AVAILABLE" <#if pageForm.data_status == 'DATA_AVAILABLE'> selected</#if>>启用</option>
                                    <option value="DATA_DISABLE" <#if pageForm.data_status == 'DATA_DISABLE'> selected</#if>>停用</option>
                                    <option value="DATA_LEAVE" <#if pageForm.data_status == 'DATA_LEAVE'> selected</#if>>离职</option>
                                </select>
                            </div>
                           
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">建立日期</span>                               
                                <div>
                                    <div class="input-group date date-picker" data-date-format="dd-mm-yyyy" >
                                        <input type="text" class="form-control" readonly="" id="start-time" name="create_date" value="${pageForm.create_date_str}">
                                        <span class="input-group-btn">
                                            <button class="btn default" type="button">
                                                <i class="fa fa-calendar"></i>
                                            </button>
                                        </span>
                                    </div>
                                </div>
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">结束日期</span>
                                <div>
                                    <div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
                                        <input type="text" class="form-control" readonly="" id="end-time" name="create_date_end" value="${pageForm.create_date_end_str}">
                                        <span class="input-group-btn">
                                            <button class="btn default" type="button">
                                                <i class="fa fa-calendar"></i>
                                            </button>
                                        </span>
                                    </div>
                                </div>
                                
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">国籍</span>
                                <input type="text" class="form-control" name="nationality" value="${pageForm.nationality}">
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">验证</span>
                                <select class="form-control input-inline" name="key_validate" >
                                    <option value="">--请选择--</option>
                                    <option value="VALIDATE_NOT_YET" <#if pageForm.key_validate == 'VALIDATE_NOT_YET'> selected</#if>>未认证</option>
                                    <option value="VALIDATE_SUCCESS" <#if pageForm.key_validate == 'VALIDATE_SUCCESS'> selected</#if>>认证成功</option>
                                    <option value="VALIDATE_FAILURE" <#if pageForm.key_validate == 'VALIDATE_FAILURE'> selected</#if>>认证失败</option>
                                    
                                </select>
                            </div>
                             <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">子账户状态</span>
                                <select class="form-control input-inline" name="account_no_status" >
                                    <option value="">请选择</option>
                                    <option value="NOT_OPEN" <#if pageForm.account_no_status == 'NOT_OPEN'> selected</#if>>未开户</option>
                                    <option value="OPENED" <#if pageForm.account_no_status == 'OPENED'> selected</#if>>已开户</option>
                                    <option value="OPEN_FAIL" <#if pageForm.account_no_status == 'OPEN_FAIL'> selected</#if>>异常</option>
	
                                </select>
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">摊位号</span>
                                <input class="form-control" placeholder="摊位号"  name="account_no" value="${pageForm.account_no}"></input>
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">子账号</span>
                                <input class="form-control" placeholder="子账号"  name="bank_account_no" value="${pageForm.bank_account_no}"></input>
                            </div>
                             <div class="search-item input-group col-md-4 col-sm-4">
                                <span class="input-group-addon">子账户状态</span>
                                <select class="form-control input-inline" name="out_card_type" >
                                    <option value="">请选择</option>
                                    <option value="NOT_BIND_CARD" <#if pageForm.out_card_type == 'NOT_BIND_CARD'> selected</#if>>未绑定</option>
                                     <option value="IN_OUT_CARD" <#if pageForm.out_card_type == 'IN_OUT_CARD'> selected</#if>>出入金卡</option>
                                    <option value="OUT_CARD_ONE" <#if pageForm.out_card_type == 'OUT_CARD_ONE'> selected</#if>>出金卡一</option>
                                    <option value="OUT_CARD_TWO" <#if pageForm.out_card_type == 'OUT_CARD_TWO'> selected</#if>>出金卡二</option>
                                    <option value="OUT_CARD_THREE" <#if pageForm.out_card_type == 'OUT_CARD_THREE'> selected</#if>>出金卡三</option>
                                </select>
                            </div>
                            <div class="search-item input-group col-md-4 col-sm-4">
                                <a href="javascript:;" class="btn btn-success indsearch" name="search" id="search">查询</a>
                                <a href="javascript:;" class="btn btn-default indreset" name="ret" id="reset">清空</a>
                                
                            </div>
                        </form>
                    </div>
                </div>
                <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN EXAMPLE TABLE PORTLET-->
                    
                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <button id="add_individual_new" class="btn sbold green"> 创建用户
                                </button>
                                <button id="import_individual" class="btn sbold green"> 批量导入用户
                                </button>
                                <button id="export_batch_transfer" class="btn sbold green">一分钱测试导出
                                </button>
                                <button id="export_batch_bank_account_no" class="btn sbold green"> 用户数据导出
                                </button>
                            </div>
                            <div class="tools"> </div>
                        </div>
                        
                        <div class="portlet-body">
                        	
                            <table class="table table-striped table-bordered table-hover table-checkable order-column" id="individual_body">
                                <thead>
                                    <tr>
                                        <th style="width:1%">
                                            <input type="checkbox" class="group-checkable" data-set="#individual_body .checkboxes" /> </th>
                                        <th style="width:3%"> 姓名 </th>
                                        <th style="width:4%"> 手机号 </th>
                                        <th style="width:6%"> 证件号码 </th>
                                        <th style="width:4%"> 所属公司 </th>
                                        <th style="width:6%"> 银行卡号 </th>
                                        <th style="width:3%"> 备注</th>
                                        <th style="width:3%"> 状态 </th>
                                        <th style="width:3%"> 验证   </th>
                                        <th style="width:3%"> 子账户状态 </th>
                                        <th style="width:3%"> 绑卡状态 </th>
                                      	<th style="width:15%" class="col-edit"> 数据操作  </th>
                                    </tr>
                                </thead>
                                <tbody>
                                     
                                </tbody>
                            </table>
                        </div>
                        <div class="caption">
                            <div id="tips" class="tips"></div>
                        </div>
                        <div class="caption">
                             <!--<button id="fundActive" class="btn sbold blue"> 启用选中用户基金
                            </button>
                            <button id="fundDisable" class="btn sbold red"> 停用选中用户基金
                            </button>-->
                        	<button id="four_validate" class="btn sbold green-haze"> 信息鉴权
                            </button>
                            <button id="active_individual" class="btn sbold green"> 激活选中用户
                            </button>
                            <button id="up_individual" class="btn sbold blue"> 启用选中用户
                            </button>
                            <button id="over_individual" class="btn sbold red"> 停用选中用户
                            </button>
                            <button id="four_validate_artificial" class="btn sbold red"> 外籍鉴权
                            </button>
                           <!-- <button id="open_accountNo_huaxia2" class="btn sbold red"> 开通子账户（华夏二期）
                            </button>-->
                            <button id="open_accounts_no_card" class="btn sbold red"> 无卡开户
                            </button>
                            <button id="accountInfoChange" class="btn sbold red"> 子账户信息变更
                            </button>
                            <button id="direct_authentication" class="btn sbold red"> 直通鉴权
                            </button>
                            <button id="bind_batch_bank_card_in_and_out" class="btn sbold red"> 批量绑卡(出入金卡)
                            </button>
                            <button id="bind_batch_bank_card" class="btn sbold red"> 批量绑卡(出金卡)
                            </button>
                        </div>
                    </div>
                    <!-- END EXAMPLE TABLE PORTLET-->
                </div>
        </div>
        <!-- END PAGE BASE CONTENT -->
    </div>
</@page.mainTemplate>